package top.longmarch.flow.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import top.longmarch.flow.dto.SyncComponentDTO;
import top.longmarch.flow.entity.LiteflowBusinessCmp;

import java.util.Map;

/**
 * <p>
 * 组件信息 服务类
 * </p>
 *
 * @author YuYue
 * @since 2024-04-19
 */
public interface ILiteflowBusinessCmpService extends IService<LiteflowBusinessCmp> {

    /**
     * 搜索组件信息
     *
     * @param params 查询参数
     * @return 带分页的组件信息
     */
    IPage<LiteflowBusinessCmp> search(Map<String, Object> params);

    /**
     * 同步组件
     */
    String syncCmp(SyncComponentDTO dto);

}
